package com.swxy.club.dto.dt;



import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "社团注册信息", description = "用户注册社团所需参数")
public class ClubRegisterDTO {

    @NotBlank(message = "社团名称不能为空")
    @Size(max = 25, message = "社团名称不能超过25个字符")
    @ApiModelProperty(value = "社团名称", required = true, example = "快乐社团")
    private String name;

    @ApiModelProperty(value = "社团描述", example = "这是一个充满欢乐的社团")
    private String description;

    @NotNull(message = "社团分类不能为空")
    @ApiModelProperty(value = "社团分类ID", required = true, example = "1")
    private Long categoryId;

    @NotNull(message = "初始人数不能为空")
    @ApiModelProperty(value = "初始成员人数", required = true, example = "5")
    private Integer memberCount;

    @NotBlank(message = "申请原因不能为空")
    @ApiModelProperty(value = "申请理由", required = true, example = "希望创建一个快乐的社团")
    private String applyReason;


}